package file;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class ReadFile {

	public static void main(String[] args) throws IOException {
		File file = new File("D:/autolog_20141017");
		BufferedReader br = new BufferedReader(new FileReader(file));
		String line = null;
		int num = 0;
		while ((line = br.readLine()) != null) {
			num++;
			if (num % 50000 == 0)
				System.out.println("line num is:" + num);
		}
		System.out.println("total num is:" + num);
		br.close();
	}
}
